package work4;

/**
 * 医生类
 */

public class Doctor extends Role implements Treat{
    public Doctor(String name, int level, String selflntroduce) {
        super(name, level, selflntroduce);
    }
    //D是医生的行为
    public  void  d(){
        System.out.println("我是"+this.getName()+
                "我的等级是"+this.getLevel()+getSelflntroduce());
    }

    @Override
    public void treat() {
        System.out.println("发动技能：冲虚养气");
    }
}
